package com.netsdk.web.mq.producer;

import com.netsdk.mq.core.RedisMQTemplate;
import com.netsdk.web.mq.message.DeptRefreshMessage;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author aqie
 * @Date 2022/3/26 10:10
 * @desc
 */
@Component
public class DataProducer {
    @Resource
    private RedisMQTemplate redisMQTemplate;

    public void sendDeptRefreshMessage() {
        DeptRefreshMessage message = new DeptRefreshMessage();
        redisMQTemplate.send(message);
    }
}
